<p>myc02-emplist works!</p>
<h2>员工列表</h2>

<table class="gridtable">
  <tr *ngIf="empList.length == 0">
    <td colspan="7">没有员工了</td>
  </tr>
  <tr *ngFor="let emp of empList; index as i">
    <td>{{emp.eid}}</td>
    <td>{{emp.ename.length > 3 ? (emp.ename | slice:0:3) + "..."  : emp.ename}}</td>
<!--    <td>{{emp.salary | salary}}</td>-->
<!--    <td>{{emp.salary | number:"4.2-4"}}</td>-->
    <td>{{emp.salary | currency:"￥"}}</td>
    <td>{{emp.birthday | date:"yyyy-MM-dd HH:mm:ss"}}</td>
    <td>{{emp.sex | sex : "zh"}}</td>
    <td>{{emp.zzmm | zzmm}}</td>
    <td>
      <button (click)="doDelete(i)">删除</button>
    </td>
  </tr>
</table>

<div>
  {{empList | json}}
</div>
